import Vue from 'vue';
import vueRouter from 'vue-router';
import login from './vue/login.vue';
import index from './vue/index.vue';
import module from './vue/module.vue';
import filemain from "./vue/filemain.vue";
import fileQuery from './vue/file/fileQuery.vue';
import checkFile from "./vue/file/checkFile.vue";
import logicDelete from "./vue/file/logicDelete.vue";
import fileRecover from "./vue/file/fileRecover.vue";
import permanentlyDelete from "./vue/file/permanentlyDelete.vue";
import fileUpdate from "./vue/file/fileUpdate.vue";
import moduleCheck from './vue/module/ModuleCheck.vue';
import moduleUpdate from './vue/module/ModuleUpdate.vue';
import queryModule from './vue/module/QueryModule.vue';
import fileProduction from "./vue/generate/production/FileProduction.vue";
import fileProductionCheck from "./vue/generate/production/FileProductionCheck.vue";
import fileProductionUpdate from "./vue/generate/production/FileProductionUpdate.vue";
import queryProcedure from "./vue/generate/production/queryProcedure.vue";
import procedureFile from "./vue/procedure/ProcedureFile.vue";
import procedureFileCheck from "./vue/procedure/ProcedureFileCheck.vue";
import procedureFileQuery from "./vue/procedure/ProcedureFileQuery.vue";
import procedureModuleUpdate from "./vue/procedure/ProcedureModuleUpdate.vue";
import userDelete from "./vue/user/UserDelete.vue";
import userAdd from "./vue/user/UserAdd.vue";
import userQueryDetails from "./vue/user/UserQueryDetails.vue";
import userUpdate from "./vue/user/UserUpdate.vue";
import permission from "./vue/permission/permission.vue";
import menus from "./vue/permission/menus.vue";
Vue.use(vueRouter);
export default new vueRouter({
    routes: [
        {
            path: '/', redirect: '/login'
        }, {
            path: '/login', component: login
        }, {
            path: '/page', component: index,
            children: [
                {
                    path: '/module', component: module
                },
                {
                    path: '/fileMain', component: filemain
                },
                {
                    path: '/fileQuery', component: fileQuery
                },
                {
                    path: '/checkFile', component: checkFile
                },
                {
                    path: '/logicDelete', component: logicDelete
                },
                {
                    path: '/fileRecover', component: fileRecover
                },
                {
                    path: '/permanentlyDelete', component: permanentlyDelete
                },
                {
                    path: '/fileUpdate', component: fileUpdate
                },
                {
                    path: '/moduleCheck', component: moduleCheck
                },
                {
                    path: '/moduleUpdate', component: moduleUpdate
                },
                {
                    path: '/queryModule', component: queryModule
                },
                {
                    path: '/fileProduction', component: fileProduction
                },
                {
                    path: '/fileProductionCheck', component: fileProductionCheck
                },
                {
                    path: '/fileProductionUpdate', component: fileProductionUpdate
                },
                {
                    path: '/queryProcedure', component: queryProcedure
                },
                {
                    path: '/procedureFile', component: procedureFile
                },
                {
                    path: '/procedureFileCheck', component: procedureFileCheck
                },
                {
                    path: '/procedureFileQuery', component: procedureFileQuery
                },
                {
                    path:'/procedureModuleUpdate',component:procedureModuleUpdate
                },
                {
                    path:'/userDelete',component:userDelete
                },
                {
                    path:'/userAdd',component:userAdd
                },
                {
                    path:'/userQueryDetails',component:userQueryDetails
                },
                {
                    path:'/userUpdate',component:userUpdate
                },
                {
                    path:'/permission',component:permission
                },
                {
                    path:'/menus',component:menus
                }
            ],
            name: '/Page'
        }

    ]
})